Allow building core and samples separately

- Default to core