Guard hacks for Linux < v6.0 with #ifdefs