Updated to compile nicely in Monodevelop.