added compile flags to examples