Make -mac a static library, fix header installation