Fixed tests build on GCC