add amazon support

Simple patch to support amazon linux