Fixed the build system. Generate the object files for release and debug builds in different directories.