Add in some conditional compilation in order to silence an unused variable warning.