Generalized the installationscript a bit, fixed the CDF definitions.
Changes due to install compilation.