Declare entry points in a dedicated header and compile the source separately instead of including it in the server implementation.