fixes for running the client on Mono