Use _aligned_malloc and friends on windows, custom implementations on *nix