Fix order of execution for glibc build