Fix linker error on gcc