add new thread static function
add pthread compiler option