Add __LIBC_UNUSED__ for unused arguments
Use __LIBC_UNUSED__ instead of local UNUSED for unused arguments
Drop lots of compile warnings

 Marjor drop unused arguments and unused variables warnings.