fix Qt file extension bug in Mac