Android API levels 16 and below don't have posix_memalign

We need a fallback for supporting these Android versions.

Edited by Thomas Daede