Fixed some linker warnings.