Added hooks for compilation and generation.  This fixes #384

--HG--
branch : trunk
1 file changed