In referenda in 2005 and 2009 , the citizens of Curacao voted to become a self-governing country within the Kingdom of the Netherlands .