Fix ocl::dft error when program end on Linux