fix linker error for G++ and clang
another build fix