small build fixes

Some small tweaks I've been needing to be able to build the project.
why do you need this change?