libpillow compilation bug fix on windows platform
somewhat improved charge assignement