fixed bunch of VS2010 warnings/errors (when compiled as C code)
removed dummy references and replaced with pragma to ignore C4100 warning & removed one unreachable return
Merge pull request #1 from jlauha/master

fixed bunch of VS2010 warnings/errors (when compiled as C code)