Fixed compilation errors
Fixed some bugs and added VLC to detection