build hooks as static library