Merged v1.48 and v1.50 parts of constants.hpp

Constants will not work with Boost before v1.50 anyway.