added dns support with multiple results
shuffle brokers to get a random broker to connect to
enable compiler optimizations