fixed bug accidentally introduced when moving to xraylib 3