fix missing declarations for pthread_join extensions in source file