Fixed smap initialization in older compiler
Added -lstdc++ to common livs