Update Makefile.main

Put LDFLAGS variable after OBJS.
Otherwise it won't build ie on linux ubuntu 14.04