Fix makefile

Only statically link libraries on Windows.