add context menu entry to make the current file's parent dir the cwd

This adds a menu entry in the context menu to set the the directory of the side bar to the parent directory of the currently visible file. I've found this tremendously useful.

The patch also allows compilation in xcode 4.2.