Gary O'Neil picked up his first home win in charge at Bournemouth as they defeated Leicester 2-1 on the Cherries' 100th Premier League game.