Added #ifdef to qt4 rmdir impl