Remove unnecessary link for linux and windows compiles