Added support for pthread_main_np() function.