minor fixes for Amazon Linux