You can do it but its going to be a bit of a pain. You have to do a little math to work out the spoke lengths following the general principles set out here: http://sheldonbrown.com/mismatch/
Lacing to a 36h rim is probably best as you'll only have to skip two holes on each flange, but figuring out a strong lacing pattern is probably going to take a little trial and error.
You can do it but its going to be a bit of a pain. You have to do a little math to work out the spoke lengths following the general principles set out here:
http://sheldonbrown.com/mismatch/
Lacing to a 36h rim is probably best as you'll only have to skip two holes on each flange, but figuring out a strong lacing pattern is probably going to take a little trial and error.