Allow alternative to applicationDirPath() to be hard coded at compile time


To use this:

```
export HARDCODE_APPLICATION_DIR=/usr/lib/foo
```

and then
```
qmake && make
```
as usual.