cmake: Output build type information; add policy