Use SO_REUSEADDR for automatic port selection

@davidnavas