fixed compilation error on g++
fixed compilation on g++