workaround for gcc's optimizer breaking dynamic symbol resolution