I had to re-define the add_header() function as I think the compiler was screwing up the lenght|MBIT logic.  THIS RE-ENABLES ANDROID SUPPORT which had been broken since 1.2.7