Workarounds for png code in some older versions of VC.