make it working with gcc 4.8