core: replace compiler flag -W by -Wextra (new name)
core: ignore return value of 'write' in function hook_set (fix compiler warning)