Properly support VLC 2.1 when linking and add static support to QML