Tracking down linking bug, multiple definitions