getifaddrs() may only be available if the target API is >= 24
This is the fix for issue #41 (closed).