Build separated for lib and app