This fix codifies Issue #48 fixing the posix_memalign error

This fix applies to Issue #48 as reported by @Shailesh-Venugopal. It also moves the patch to the devel branch as requested by @moritz-wundke.