Added #if/#endif block for the CMake option of headless builds.
Removed QApplication with WINTER_APPLICATION for agnosticity.
Merge branch 'feature/headless-builds' into develop

* feature/headless-builds:
  Removed QApplication with WINTER_APPLICATION for agnosticity.
  Added #if/#endif block for the CMake option of headless builds.