If gcc version < 4.7, omit --std=c++11 flag
Fix printf formatting warnings
Use malloc/free instead of new/delete for void* pointer in memory management to suppress warnings about deleting pointers without type information
Define _CRT_SECURE_NO_WARNINGS on Visual Studio to suppress loads of warnings
Merged
re-removed unnecessary .cpp files from ImageLib/CMakeLists.txt