Fix build for desktop version.
Try to fix segfault in Harmattan version.