Removed Mono dependency. Fixed a few build errors. Test now works under Visual Studio 2012.