fixes for -Wcast-align