fixing linking problems.