Use the codec_descriptor lossless flags to identify lossless audio instead of a hardcoded list.
Implement a blacklist feature to allow disabling LAV for uncooperative applications.

There is no GUI option for this, nor is there a pre-populated list of applications.
Original patch by clsid.
Add missing include to fix compilation for some people