Remove warnings from gcc -Wall.
Remove GCC 4.9 warnings, mainly for narrowing conversions and for initialization order.
Audit and cleanup of class Os, removing unused functions.
Remove all the debugging printf() calls.  Transform a couple instances into exceptions, so added catch clause for std::exception in the npmain() function.