Clean object files in version dir
install.do shouldn't depend on executables

It makes the ./do script rebuild everything in the install target.
Support replacing/adding compile and link flags

This is needed for Debian Hardening to add defines and build flags.