fixed bug accidentally introduced when moving to xraylib 3
Merge branch 'bugfixes' into batchmode