Made Mount blocking again.
Fixed compiler errors for OS X.