Remove error printouts

A library should never print anything, so removing the perror()
printouts.