Fix linux (gcc, clang) build errors