Remove many unused defines and convert some double constants to float.