core: Fix library names to be enums