Looks like there was indeed dll compatability problem due to my unorganized MSYS packages dowloads. I reinstalled MSYS and all packeges I needed and now it works.