provide the proper compiler and linker arguments on Linux and FreeBSD using pkg-config

- provide the proper compiler and linker arguments on Linux and FreeBSD using pkg-config
- add sdl.GetSystemRAM() and sdl.HasAVX() from SDL 2.0.1 and SDL 2.0.2