VLC version checking and min/max port fix