Clear more warnings

* 4291: no matching operator delete found; memory will not be freed if
  initialization throws an exception
* 4800: forcing value to bool
* 4244: type conversion, possible loss of data