Build libqc-opt as a STATIC_LIBRARY and add LOCAL_LDLIBS

Change-Id: I0cb81f24f25b8e8193f3770543f0bbe5f80b3bde