Remove use of ccGLServerState from CCNode.pkg.

ccGLServerState is and enum type that was referenced in CCNode.pkg
but not declared.  This change replaces it with with a simple int.
Without this change compiling with -Wall will generate an unused
function warning.

Also, remove the duplication between build_macosx.xml and build.xml.
They only differed in single property.  Instead use build.sh, which
should work on all UNIXs, no just maxosx.