replace more asserts with error messages
fix python cd3 crash

- crash is caused by non matching FILE object layout in different msvc comilers
- python 2.7 is compiled with vs 2008
- cd3 could be compiled with 2010/2013/2008
fix boost namespace issues
first steps in compiling cd3 with python3