fixed a bunch of compilation problems

now on to getting a simple server API in place