omit constant-1 Mem write masks

This also works around an ISE synthesis bug.
implement assert() and debug() for C++ and Verilog
implement printf()

requires a c++11 compiler for c++ backend