Fix more warnings due to compiler+linker options