targ: fix compiling the example
The targ example program doesn't compile with current clang, and
probably hasn't for multiple releases. Fix the build. I don't have the
right hardware to test it, though.
Sponsored by: Axcient
(cherry picked from commit 873881b7dbb72077f3723f49a9f10a432231c532)