[sgm] add build_utils method in sgm demo
[s2p] merged XB-pointstream addition by Gabriele
Merge branch 'master' of github.com:carlodef/ipol_demo