fix some compiler warnings (unused vars)