Extend aligned_alloc to support more compilers