Simple boost program throws exception