These hacks will go away when we can update to 5.4, after its release. GCC 4.2 on 64-bit archs fails for these -cast_num(LUA_MININTEGER) bits, despite them being likely harmless and definitely intentional.
Since these functions are for float comparisons anyways, and our float is actually an integer, this should still be effectively a nop.