Set SO_REUSEADDR by default in libnative.

Fixes std::net test error when re-running too quickly.