Fix mono build on travis

Following set of changes fixes the build on mono for travis.