GCC 4.2.1 does not support nullptr, use traditional NULL.Linker requires explicit libpthread.
A regress test to test concurrent exception handling in threads