Support proper SemVer prerelease versions in dependencies. Fixes #935.