fix for server dying because of a string that is too short. Also update automakes to be a bit more friendl to os x