Didn't u had to delete all the steam source code too? Probably would be most useful to zip your codextended folder and just upload as a whole. Or, if you can figure out git/github, make a new commit for your changes.
Actual difference between yours and php's build.sh:
And some other stuff, doesn't fit all on screen, these two other changes should be used too, the rest was added "-g" flags to gcc.
Code:
81 - params="$DEFINES -std=c99 -I. -m32 -fPIC -Wno-write-strings"
80 + params="$DEFINES -std=c99 -I. -m32 -fPIC -Wno-write-strings -DSTEAM_SUPPORT=0"
Code:
131 - g++ -include inc.h -Os -O1 -O3 -s -fvisibility=hidden -w -Wl,--exclude-libs,ALL -I. -m32 -fPIC -Wno-write-strings $STEAM_INCLUDE -c steam.cpp -o obj/steam.o
130 + # g++ -include inc.h -Os -O1 -O3 -s -fvisibility=hidden -w -Wl,--exclude-libs,ALL -I. -m32 -fPIC -Wno-write-strings $STEAM_INCLUDE -c steam.cpp -o obj/steam.o