revert linking added to combat ld bug