silence three annoying, mostly useless warnings
move built binary to top-level build directory
setup environment for in-place run
fix up includes
more constness, more references (in place of pointers)
other minor changes