Fixed compile bug with GCC