fix compile with cuda 5.0

bug come in with #457