Fixed issues when compiling in Monodevelop 5.