Fix link failures due to missing pthread

This typo was previously hidden due to FindSDL*.cmake always linking
to threading libraries, which changed in commit b629f7.