Fixed build system edge cases whereby changing version didn't cause rebuild.
Added error reporting interface / facility.