Added portable compiler attributes UNUSED_SYMBOL and CHECK_RETVAL.