Use BUILD_SNOPT option to conditionally compile snopt code files.

I didn't address the shared library issue yet.