fix compile (tested on fedora 20)