Needed the following patches to get it to compile on a DS20. It is anev6, so it wasn't recognised and one of the defines in s_lock.h waswrong.
Adriaan