[will rebase] Add debug_assert!() to core macros
[will rebase] Fix rlib-only libcore makefiles