Remove cruft, simplify and comment build config, add version constraints.