add special code to detect posix_memalign on mac os x, fix #788