Add missing include.
Remove unused variable to fix compiler warnings.