fixed compilation errors, removed contraints to cost functions in BasicQP