Change SimpleStringBuffer to use size_t, to compile with gcc 4.8.1