Fixed warnings in cmake build after previous commit