Add skip frame hotkey in ImageSegmenter
Replace dirent.h with boost/filesystem.hpp

because dirent.h is not cross-platform.