fixed compile errors on MSVC
fixed a compile error of libvpvl2qtcommon when NVTT is disabled
more externalize to cmake/Functions.cmake