fix: compilation with -mthumb flag for certain files