Common print

commit 3a40a8f fixes an issue arising from 8929c03, allowing the project to be built and for tests to run.

This pull request will likely be amended, removing the most recent commit and instead updating generated source import declarations to point to a location more consistent with print's new location. Review is open and welcome, but please wait to accept until this is done before accepting the pull request or prepare for history rewriting.