Made ncCheck argument file 'const char*'

This removes a lot of compiler warnings (g++) as mentioned in NCXXF-4.