More C++11
bootstrap.py: update waf, support Python 2 and 3

Also verify waf checksum.