fixed bug in SDL building