modify bool.h, add true and false macros
modify some global wres prototypes