Removed boost dependency, using pthread instead