Fix nask source code for compiling with C++