finally found the working file and build script for MacOSX