Make app compile on linux

Okay cool. feel free to change it. I was in bit of hurry to get it work, I admit. :-)