Rebase from 'upstream'
Apply eml-r36.patch
Add skeleton cmake file.
Fix build dependencies and add CMake config.