update for llvm 3.2
apply jckarter's patch for fixing x86-64 ABI
fix clang's warning about implicit NULL convertion
Merge pull request #462 from crabtw/llvm3.2

update for llvm 3.2: master branch