update cmake add DYNAMIC_LINK option

另外,移除对head.h的依赖,不再支持3.2版本的LLVM

Signed-off-by: xiehuc <xiehuc@gmail.com>