[CMake] Properly detect compiler flags, needed libs, and fallbacks for usage of 64...