cmake: Fix build with SDL2 on Alpine Linux.