Reorder LD flags

Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>