Do not use <sys/sysctl.h> on Linux
glibc 2.30 deprecated the <sys/sysctl.h>
header. However, that header is still used on other Unix-like systems, so only prevent it from being used on Linux, in order to prevent compiler warnings from being triggered.
Closes #1298 (closed)