Fix compile errors on Fedora Core 20