improved linking order by correctly detecting dependencies on fragment vars. Forced discard statements to be linked
added colorKey support