Fix compilation by using a top-level qmake configuration
Fix compilation from missing unistd.h header