Merge pull request #3 from swegener/master

Use LDFLAGS for linking