Fixed the platform checks and added X11.
Fix getAppPath() to always return a value.

getAppPath() did only return a string if either of Q_WS_WIN or Q_WS_MAC
is defined. Made Q_WS_WIN code path default and used Q_WS_MAC as an exception
to support other platforms eg. Q_WS_X11.