Fix unused variable compile warnings