Fixed compile error on linux missing numeric_limits