versioning and some build fixes.  Warnings about where building will happen.
VERSION checks against a desired library verison.
return value from VERSION; also don't build library if not necessary.