Replace manual conversion with ntohl()
git-subtree-dir: contrib/pnglite git-subtree-mainline: 5bcd0b860c7d4935db5b290cf932357fc22adf3a git-subtree-split: a70c2a23d0d84dfc63a1d9413a7f4aaede7313aa