:bug: in 60ab405c prevents compilation

Somehow, ptr_map requires a non-const key when inserting object in map.
Removed warnings generated by -Wall

Deprecation and unknown pragma warnings are left.
There are still some warnings from SWIG.