cmake: build qcustomplot as static lib and fix windows build