Add linker flags -static-libgcc and -static-libstdc++ on Windows

This seems necessary with newer gcc versions to not
require libgcc*.dll libraries on runtime.