Prevent errors when building from the command line.