Merge pull request #1 from alexbenfica/master

Added .bat to make build easier on Windows.
Using only line to detecet pthread library