I didn't test your patch, but --enable-mp4-output is not a valid option for r1448. x264 should automatically detect the presence of gpac (required for mp4 output) during ./configure.
I didn't test your patch, but --enable-mp4-output is not a valid option for r1448. x264 should automatically detect the presence of gpac (required for mp4 output) during ./configure.