cmake fixes for multiple architectures (especially x64)
Merge branch 'developer' of https://github.com/nomacs/nomacs into developer

Conflicts:
	ImageLounge/CMakeLists.txt
cmake fine tuning