improve detection of curl
make cmakelists win compatible
make luajit win compatible
qurl local file funcs (and qtide fix)
qtide: try to activate find/replace window when shown
luaopen_xxx functions need LUA_EXTERNC
win: avoid printing warnings to null stream
ported package torch to win
win: added missing TH_API
added winqlua and wintorch
wintorch has both console and ide.
enhanced paths (paths.home, path.mkdir, etc)
added packaging code
Fix sdot return and work with openblas
fix gnuplot.lua for windows
introduce THC_API and work around log1p issue.
Added wrappers for Lapack functions: porti, ports, portf.

These are for positive symmetric matrices (inverse, solve and
factorize).
Replaced #if by #ifdef, for clang.
merge