Fix build and some warnings from rap_server
Refix deps