fix compile for Linux 3.17

... fixes compilation errors.