lavu: Move preprocessor macros in a separate file

And remove all the circular inclusions of avutil.h while at it.