elib now compiles on apple. but breaks horribly