Fixed problem with UseInternalPNG flag.
Use this for win64 still not gonna work right in vs2010 though.