proj: add version.go, adjust code to lower-level API changes