Fix the GLOB macros and Debug options for MacOSX