add support for amazon linux
add proper support for gems

some gems require the ruby headers to be able to install, so just install the dev package by default