Fixes for Sailfish SDK (WIP)

This series of fixes makes the target (SB2) and emulator image
able to be installed in the Sailfish SDK. Several fixes are
still required for making the emulator to be connected to QtC.