Fixed e-server to be built properly as an executable not a shared library