unable to solve undefined reference for mutex, start barrier