Test setIPv4Only() only on supported library versions.
Merge pull request #155 from geekmug/master

Right, quite absolutely.