example compiles for both linux and mac