Added g++ specifc code for openfile dialog