Refactor defines etc. for nemo, sailfish, and harmattan.