Small update

* C++

- fixed syntax in CPP files so that MSVC10 stops complaining that
  it doesn't know the types from the library.
- added three more constructors to sparse_slice for convenience
- some anti-warnings pragmas here and there