Transconductance amplifier with compensation capacitor