Fixes compilation issues on some distros