Properly order linker arguments.

Fixes broken linkages with LDFLAGS on certain platforms see #23.