fixes to get it compiled on Mac OS

I also uploaded compiled app https://mega.co.nz/#!eBp1GIaD!OeIHn8dFxa0tWGZqP16CLq9aV334acdcQfOCVmAXQ14