updated build files and made LLVM 3.1 compatible
update example code in readme