Add link dependency on shlwapi.lib during build configuration instead of #pragma comment statement. Use this library also on MinGW.