Properly check compiler version

Should fix deprecation test errors on parrot and jvm