Enable mono build on OSX

This reworks the `build.libgit2sharp.sh` script to allow tests to run with Mono on OS X. Tested under Mono 3.2.4 on OS X Mavericks, and my 32-bit Ubuntu VM.