Fixed includes for ps mode
Changed configure to use sed instead of ed