Add a wrapper for posix_memalign and friends

This also fixes the order of arguments passed to _aligned_malloc.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>