Implement improved feature detection on Linux