Compile stubs if lwt.tracing isn't available

Also, cleaned up the API.