changes to allow mono builds (in linux)

As far as I've seen, problems are:
- faulty cases in file name references
- missing dependencies when building with 'Release Mono' (which currently is the only way to build for mono)

Changes are tested on a 32bit and 64bit gentoo linux with mono 3.2.8, works like a charm although I don't have an too extensive test case here at the moment.