Do not redefine math constants
Use better range handling in OpenEXR