fix case on LC_TYPE, add ARCHFLAGS