Ubuntu Linking problem