added forgotten sample resampler (need to be rewritten later)
ported usleep/unistd to windows
fixed vc warnings
fixed overflow in resampler if size_t is 32 bit (x86 builds)