Mac bootstrap based on Lapwing tutorial and Mathias Bynens