check runtime version against the generator version. 

fixes #341