NEX-5 lens compatibility
The 35mm f1.8 lens is an e-mount lens so it's going to work with all the NEX cameras, old and new. I don't see why it wouldn't work.
I also see no reason why these lenses wouldn't work. I don't believe the NEX-5 does in-camera lens corrections for JPG, so one caveat is that to get these lenses corrected (more important for the 10-18mm) you'd need to shoot RAW and use software that applies lens corrections to the RAW.
"The only thing that gets in the way of a really good photograph, is the camera"