Fix cmake configure error from deleted test.
Fix unused parameter and variable warnings.
Merge pull request #837 from arsenm/master

Fix cmake build and warnings