Fixed small bugs for clang compilation - more work on interface

Signed-off-by: Ian bell <ian.h.bell@gmail.com>