First steps on trying to run with BuildServerIntegration in mono

Mono is pretty unstable for me now. Those changes now make sure we have a working build and fixes some crash for now.