Fixed link error on MinGW + MSYS