rename opensnap.c to opensnap.cpp - it's cpp source as we can see in Makefile
some codestyle changes