Add temporary pre- and post-build hooks