only use aligned_alloc on newer libc