Replaced to_string() function to fix compile errors on linux