improved maemo platform detection, cleaned up module imports