Modified the POSIX build script to only compile the dependencies once.