build: fix usage of HAVE_SDL1 define

This is needed after fd1f8ed49.