Detour https://github.com/earthreader/libearth/issues/38