[backfire] tools: merge r27916 (OS X 10.7 getline fix)