Fix link arguments on Windows

This is needed to make the examples compile on Windows.