pmap fixes, pthreads work, and assertions for thread initialization/implementation.