make compatible with gcc 4.6