Make the code compile/link on newer Fedora

Signed-off-by: Radu Rendec <radu.rendec@cloudbit.ro>