patched c++ compilation warnings with unstarch.c