fixed typos so it compiles. Still need to test minithread library