This should take care of it:
https://github.com/kovidgoyal/calibr...fbd9aeb85f2ff2
Note that if you are running from source you will get errors as it requires changes to the compiled parts as well, so dont update your source till the next calibre release.