Build import library for mingw

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Add NO_STATIC variable which disables static lib installation

Static library is still built for shared lib generation.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>