Add UNUSED() macro to hide compiler warnings
Fix some compiler warnings