Some fix to compile nmeap under bertos environment.