Fix build warnings.
made TH standalone installation more flexible
Merge branch 'master' of github.com:torch/torch7