fix classpath and build file to resolve runtime dependency on server