Changes in order to build on mono