Fix compile errors on Fedora Core 20

(from chuckgr)