fixed compilation warnings on g++