support for dynamic linking and reuse system CFLAGS

My goal is it to create a redistributable dynamic FFmpeg library. This makes it possible. Also, I need custom `CFLAGS` to specify that I want to use the MacOSX 10.6 SDK so that it is compatible with >=MacOSX10.6.