small build fixes

Some small tweaks I've been needing to be able to build the project.
`require_once` returns `true` instead of the loader because the file was already required somewhere else. I didn't try to find where though.