Make examples work on server and client. Fixes #72