Customizing the build process with prestart hooks