Heerenveen picked up a vital win in their bid to avoid relegation from the Eredivisie after they beat RKC Waalwijk 1-0 at the Mandemakers Stadion.