Fixes for building with c2hs 0.17.2