fixed compiling scripts