fix compilation with link time optimization