Unused variable warning fix

This change enables clean compilation against the library using MSVC 12.0 at level 4 warnings. The warning is issued in release mode only.