Remove some debugging printfs and fix a bug where libc's fread() returns