change idwt code for g++ compitability