Resolving localhost linking problems