[CMake] Configure GI and ImageIn as object libraries

This resolve many link errors due to usage of these 2 libraries in libcore.dll AND in eiimage.exe which also uses libcore.dll. Default rules in compilation of modules with CMake makes this configuration hard to obtain