Fixed some compilation errors discovered by the new version of MonoDevelop.