add gcc 4.8 support