Fix build issues

Build was not properly being marked as up-to-date when rebuilding. Was being
caused by object targets depending on the build folder.