correctly compile messages on the server (fixes #12)