fix viewer glfw and application path extraction and shaders