update package freeimage
package freeimage: fix static build and add test program
package freeimage: fix test program for stable branch