Fix rchk warnings; thanks to Tomas Kalibera for providing a docker container allowing developers to run this check locally.