Update Makefile.main

Put LDFLAGS variable after OBJS.
Otherwise it won't build ie on linux ubuntu 14.04
Merge pull request #1 from abes975/master

Update Makefile.main