Reorder sequence in CMakeFiles.txt

Initialize submodules before checking third party libraries.