Add lefttrim and no pid file for win32