move alignment check from aligned_alloc to posix_memalign