prefer pkg-config over direct tests
make compile with libsdl vs libsdl2 and on linux versus osx