Fixed some linking issues under MinGW