fixed compilation errors monkeypatcherservice