Fix windows build issue by moving libraries from LIBS to LINKFLAGS; Remove redundant .exe surfix on windows
Merge pull request #763 from marynate/PR-fix-build-on-win

Fix windows build issue