Bug 826931 (follow-up): fix build break. r=allstarchh

1. include netdb.h for |gethostbyname|.
2. link mozipcunixsocket_s whenever MOZ_B2G_RIL is enabled.