r300: fix compiler/linker errors
4 files changed