align allocations to min 16 bytes

required by NetBSD userspace
Add initial support for pthreads

Needs a bit of polish down the road (libpthread must be linked in with
the current state of things), but works for now.