Added safeguards for linux headers