Specify compiler settings and use maven enforcer plugin

Fixes #4.