Add gitignore.
Make smallpt compile on OSX 10.9
Add explicit.cpp and forward.cpp variants.