Here follows a patch sequence that gets rid of the deprecated codec_get_{bmp,wav}_{id,tag}() functions. There's still more cleanup to do in that area, but this is a start. Please comment.