fix wcl to properly handle space in path of file name
correct some prototypes for better portability