WIP sailfish port

the build is still broken (it's fine on Symbian of course) but well, at
least the codebase is more multiplatform than before. no functional
change