fix compiler errors -O3

* "dereferencing type-punned pointer will breakstrict-aliasing rules"
* missing initializer
* boundary