Add version check, fixes #121.