wrong libSDLmain.a library linked when using SDL 1.2