adds apiVersion and isAPICompatible.

This is an improved API compatibility check that attempts to parse the
version structure instead of simply checking for "-".