linux: some work toward building on linux