Fix indentation.
Set reuse_address socket option.
Use -pedantic instead of -Wpedantic.

Older gcc versions just don't know about -Wpedantic.