compatiblity + cleanup

non-unicode compatiblity + vc2013 compatiblity