Support for amazon linux

This PR adds basic support for Amazon Linux.