Added pre/post compile hook.