Use CGFloat instead of float everywhere, to fix 64-bit builds.