Fixing build.

Here you go, compiling on Mono under OSX now. Hopefully you can see the issue in the files changed diff.