Add build hooks