add compiling args. and add preinstall.sh for newly installed system.