Treat unused-local-typdefs always as warning.
Use Python 2.x interpreter in build scripts.
Link to pthread when building NiViewer.