a little cleanup

fixed pvs-studio generated warnings
fixed makefile
remove vc debug symbols