repair the multiple definition linking problem