Replaced deprecated and unsupported valloc with posix_memalign. Signed-off-by: Rosen Penev <rosenp@gmail.com>