User config vars moved to separate file for easier use

Config vars has been moved to separate file, included conditionally. It simplifies usage.
For Linux there is discovery of most configuration options.
Also, I added "printconf" target to print config vars, which will be used for build.