Fix compiling errors in mac due to unused parameters.