Fixed linker error on some systems