Add support for building system like RPM

RPM needs destdir to install them to fake buildroot.

And add install -p option to preserve the timestamp.