Fix CMake include search on MacOS X

On MacOS X, the include "net/if.h" is not found by the cmake. This file needs to be checked together with the "sys/socket.h" in order to be found.