[BUILD] Correct inplace build for examples