Tested OK on Mac OS X desktop build for 32-bit and 64-bit too.
Could not yet build for iOS device because the way currently CMakeLists.txt detects the target architecture information required a true cross-compiling tool chain setup. So, currently instead of detecting the target iOS architecture, it actually just returns back the same host machine architecture information. Probably would have to hand coded IOS device target architecture information similar to how it is done for Windows. Having said that, it actually builds and runs fine on 32-bit iOS Simulator. As I have no way to verify on an actual iOS device at the moment, I will not attempt to hand code the iOS device information myself. Anyone can help?
Since most of the platforms are tested OK, I propose to merge this topic branch soon into master as I see we have another topic branch coming from Aster. Lasse, are you OK with that?