fixed compilation issue on recent gcc