Fix the wave library for 32 bit compatibility