I had to disable this check, because the build fails miserably if I use module_function.