Adding check_function_exists; continual improvement. SDL2 is now building on the mac with this tool.