Bug 934337 - Get rid of custom rules fiddling with SHARED_LIBRARY. r=mshal

While here, remove other custom rules in the same Makefiles.
Bug 934335 - Fix standalone js's make install again. r=mshal