Fixed deprecation warning in Gwen.cpp
Fixed sign mismatch warnings