bug fixes with conversion to integers on non-Linux machine. Also updated all integer conversions of NaR to 0.