Also allow deprecated APIs until we can remove them. Note that this commit only includes the source files that were changed. The next commit will include the files that are generated by autoreconf. So look at this commit to see what really changed.