Fix windows build issue

Fix issue #757 

- Move libraries from LIBS to LINKFLAGS
- Remove redundant .exe surfix on windows