fixes for building monodevelop