Fix build with gcc46