build compat with amd, build css