Checks the required compiler otherwise prints an error message and exits program