Add prerequisites to be resolved by cpan client
Fix closure variable to be work as we want

The `config()` method cannot access to the $kv
variable that was removed from the memory, but remained
to undef value as a closure.
CMake with default build type as a Debug