OSX compatibility, bugfixes

Got myself some grey hair, and I feel dirty after quite some fprintf debuggging.

Tested under OSX with fuse4x and an up-to-date Arch Linux.

I'm cocky enough to push the version to 0.2.1.