Build libqc-opt as static lib

Change-Id: I89708f01e45adeba0b7ad17f3008cbb521645f01