fix compile with g++ on linux