add dist
few tweaks to gem compile