Fix unused variable warnings in -asserts build