Use LDFLAGS for linking

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Merge pull request #3 from swegener/master

Use LDFLAGS for linking