AQ: Added include for redhat, and fixed salen for BSD