Fix several warnings, compiles as C++ (Thanks NY00123)
Initial version without glad.
Compiles as C++ (tiles are uint16_t in RF_ReplaceTiles)