Porting Kuso to OSX.

These changes are not great and optimized for OSX but helps to use Kuso on OSX. later we should work on optimizing the commands to both work on OSX and Linux with the same commands.