Build libqc-opt as a STATIC_LIBRARY

Change-Id: I0cb81f24f25b8e8193f3770543f0bbe5f80b3bde