Not sure why a _close() was used here in conjunction with open(). Changing it to close() made it link (and work, as far as I can tell) on MacOS Lion.
I will accept your patch.
+1 on this patch.
Will this make it in soon?
2 years later, can we have this merged and released please?
I'm sorry merge late.
I will merge in the near future.