check for sdl-config on osx before using it for lib prefix
import correct getError, handleError. expose mkFinalizedSurface