Add library version numbering support.
Use a double step build.ninja generation to protect against failed generators...

This is not ideal, as ninja calls ninja, and should be implemented in a different way.