Minor cleanup of buffer usage, no real change.
Untangle Linux configuration from posix_memalign detection, so we can selectively disable posix_memalign for testing.