Move compiler specifics to lib file.
Allows embedding compiler.