Replace aligned_alloc with posix_memalign.