Only warn about hooks on build if there are build hooks.