Add weak stubs for pthread_cancel API.