More fixes for GCC versions < 4.8 which require FP_* macros to be cast to int to avoid overload issues in operator==.