add openjpeg to static build