fix osx compile
fix osx linking
use STL types in user/userlist, too