Fixed file permissions for *nix systems. Tested compilation with qmake and makefiles.