server: add main function

Fixing the build on travis.