added cmake build system, some fixes, tpm pcr improvements