Building avm1lib from build_flash_ts; cleanup