Fix int->long object
Make it a configurable option for optimization level.
Fix test for 32-bit platform
Fix 64-bit div/mod rounding with C definition.