fix some warnings with gcc