Fix --shared on MinGW