shared: remove unneeded smack.h include
Split Smack API to a new convenience library

Only tests and the daemon need to have visibility to this API, so
split it out of -shared.