renamed doubleNear to qgsDoubleNear, QgsMalloc to qgsMalloc, QgsCalloc to qgsCalloc, QgsFree to qgsFree
keep blue value as double, fixes #7107