Statically link when COMPILE_TYPE=mac