fixed permissions + CFLAGS