fix API/ABI change done in 1.2.3

Thanks to Michael Biebl for pointing out the problems.