Fixed compiler errors in basetypes.h