Amz linux

This pull requests adds some support for amazon linux.