Create suffix rule for all make variants

Hopefully fixes BSD make.
Fix shared library cflags