Trying to make compatible with gcc4.6.2