Support MonoDevelopment and Mono Runtime 3

- slightly changes in project settings
- update of MySQL connector
- minor code changes for mono compiler
- comment out unused var.. otherwise mono debugger is unhappy