Update Makefile.main

Put LDFLAGS variable after OBJS.

Otherwise it won't build (i.e. on Ubuntu 14.04).