Porting to Smack 4.0

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>