improve RIFF reader
Merge branch 'master' into glfw3