back port uninitialized variable access fix from libtorrent_aio
use posix_memalign on linux, not valloc