Use -pthread intead of -lpthread so it compies on IX