Make installing patches part of lib/init.sh