Fixed release-build rebuilding issues

Due to line 79, the RELEASE build was building the object files all over
again every time instead of rebuilding only the files that require to be
rebuilt.