DCT/FFT: make code c++98 compatible for old compilers (#176)