2sls now works in optimised rcpp version

doesn't compile with mac osx mavericks
- only the runAnalysisC function is causing a problem
- compiles fine in linux

speed improvement is 10x compared to R and 4x compared to optimised R