Add str_scopy; add test; refactor build system