moved LDFLAGS to end of gcc invocation to fix build
Merge pull request #1 from riney/master

moved LDFLAGS to end of gcc invocation to fix build