Updated library ordering in SConscript files. Fixes compilation bug.