Static linking to avoid collisions with dkA

Would crash if compiled with mingw when using dkA makefiles