some correction to make xfeature2d compilation work and adding 2d cuda features back