changed CMakelists.txt to allow using glow as submodule