Compile on R16 and higher

Solved complaint about deprecated function.