Link openjpeg2 statically on Windows

Please consider linking statically to openjpeg2 on Windows (or add an option to do so).