Always build library object files with shared library cflags