Changed to using posix_memalign on non win32 platforms.