compile with g++-4.9