replace lots of manual install commands with INSTALL_* variables