Support amazon linux

Support amazon linux::
- handle platform identifier
- add gcc-c++ package to build-deps.