Correct way to link std::filesystem with GCC 8?

I had the same issue in OSM2go, and that’s how I solved it:

Maybe I’ll rewrite it to use targets one day.

Eike