Install build-essentials. Why are you trying to compile Wine yourself, though? There are packages available for old versions of Ubuntu... That includes Kubuntu. Check http://www.winehq.org/download/deb