Fix linking issue in vogleditor

pthread is a dependency of voglcore, so add it to the CMakeLists.txt there.
Also add missing dl and X11 dependencies.