removes unused variables
fixes to compile and run on macoxs after llvm3.3 port