Rename key_t to named_key_t to avoid conflict with sys type on linux