Patch to make hgfs build properly

closes #3