Track inner exception to prevent compiler warning

Creating the build scripts exposed a compiler warning.  Updated to include
the unused variable as the inner exception.

The compile portion of the build script lists warnings, so this reduces
the noise of the script a bit.
Merge pull request #283 from mmcfarland/topic/fix-warnings

Track inner exception to prevent compiler warning