Various improvements

Build with older kernels. Report TDP as maximum power.
If maximum cap is not defined, set max cap := min cap.
Use defines for number of power/energy attributes.

Signed-off-by: Guenter <groeck@groeck-desktop.(none)>