The static and dynamic specific heat of undercooled metallic liquids