Building patch_loads with cmake to enable out of source builds