[gdi] bug reading/writing metafiles on sparc