fix build issues on mono