Add nbproject and *.json to .gitignore.
Fix syntax errors in CMakeLists.txt files
Fix exception with new versions of Python
Update prototypes.