Rename core macro to corelib