CPack improvements and allow in-source build, from Frédéric Devernay. Fixes #860
Make ImageSpec::get_float_attribute correctly convert many integer types.