Changes necessary to compile with mon 3.0.12 / xbuild

Most of the changes are due to case-sensitivity of filesystem