That fixes #395 (closed) for me.
I don't know whether what we had was a bug in the first place but a posix_memalign there does not harm in any way.
posix_memalign