Add default page fault handling to map to SIGSEGV in pthreads

I refactored the signal handling code a bit so that page faults in our
pthread library trigger SIGSEGV signals that application code can
handle.