Modify build for MacOSX