Add version option to compiler

Fixes #746