fixed some cuda compilation issues (?)