ignore more generated artefacts
doesn't work on Windows so remove code that could lead to confusion; force C++11
remove duplicate statements