Add support for set-logic ALL, fix compiler error in GCC 6.1