better way to get broadcast address (works on 5.0)