working on appropriate build flags