Fixed dynamic loading of NAS in CMake project.