replace static vars in aifc2wav, now thread-safe