add definitions and header files to build in Mac