1. Open Terminal (it's in Applications -> Utilities).
2. Cut and paste "defaults write com.apple.Safari TargetedClicksCreateTabs -bool true" into Terminal without the quotation marks.
3. Press "enter".
4. Restart Safari.
Now when you click a link it will open in a tab in your current window, unless you control-click and select "Open Link in New Window".