Fix windows compilation and lpsolve dependency