Small fixes for the build system.

I'm trying to port the project manager to Linux. This commit fixes some issues with the build system I ran into.