Adding macros to automatically define a default Thrift server.