Ported aligned malloc from nanosvg, fixed compile error