Linux STL vector::insert signature, iterator is not const
fix compile and link errors, warnings
remove trailing ws
tabs to spaces