unix stuff compiles now; adjusted cmake files since static libraries can't have libraries linked in; unix still has link problems