Fix build metadata comparision per SemVer v2.0.0

SemVer 2.0.0 recommends ignoring build metadata for comparision. This is
now the default behaviour for vmlib. However, it is possible to enable
comparing the build metadata as well by setting the compare_build
attribute to true.
Add comparision test cases