Make GUID comparisons use guids_are_equal() instead of ==
Include required float.h header
Don't declare variable in protected scope