Made library output path absolute when using MinGw
Removed unnecessary elseif branch
Merge pull request #475 from tpaviot/review/mingw64compilation

Made library output path absolute when using MinGw