Update libqw.cpp