Fixes gh-378 "assertion failed"

Do not align maxalloc (the limit on the amount of memory
used by the allocator), it's not necessary.

Make an effort to correctly align large (for 32 bit) prealloc
values (like, a few gigs).