Normalize version number, add preamble to standalone builds.