fixes #1161
fixes #1166
fixes #751
fixes #898
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
fixed build configuration detection