I can get it to run. 
Code:
/opt/php_with_imap_client//lib64/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
/home/cpeasyapache/src/imap-2007e/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_ap2_register_hook':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:707: undefined reference to `ap_hook_pre_config'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:708: undefined reference to `ap_hook_post_config'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:709: undefined reference to `ap_hook_handler'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_child_init':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:702: undefined reference to `apr_pool_cleanup_null'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_log_message':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:326: undefined reference to `ap_log_rerror'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:324: undefined reference to `ap_log_error'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_log_message_ex':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:333: undefined reference to `ap_log_rerror'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_register_variables':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:271: undefined reference to `apr_table_elts'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_read_post':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:202: undefined reference to `apr_brigade_flatten'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:203: undefined reference to `apr_brigade_cleanup'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:201: undefined reference to `ap_get_brigade'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_send_headers':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:176: undefined reference to `apr_pstrdup'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:176: undefined reference to `ap_set_content_type'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:164: undefined reference to `apr_pstrdup'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:167: undefined reference to `apr_table_set'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_header_handler':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:101: undefined reference to `apr_table_unset'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:105: undefined reference to `apr_table_clear'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:141: undefined reference to `apr_table_add'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:139: undefined reference to `apr_table_set'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:136: undefined reference to `ap_set_content_length'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_flush':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:311: undefined reference to `ap_rflush'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_ub_write':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:84: undefined reference to `ap_rwrite'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_ini_dtor':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:534: undefined reference to `apr_pool_cleanup_run'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_request_ctor':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:478: undefined reference to `apr_table_get'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:479: undefined reference to `apr_pstrdup'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:482: undefined reference to `apr_pstrdup'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:483: undefined reference to `apr_pstrdup'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:486: undefined reference to `apr_table_get'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:489: undefined reference to `apr_table_unset'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:490: undefined reference to `apr_table_unset'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:491: undefined reference to `apr_table_unset'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:492: undefined reference to `apr_table_unset'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:493: undefined reference to `ap_auth_type'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:494: undefined reference to `apr_table_get'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:499: undefined reference to `apr_pstrdup'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_handler':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:609: undefined reference to `ap_add_common_vars'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:610: undefined reference to `ap_add_cgi_vars'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:556: undefined reference to `apr_palloc'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:561: undefined reference to `apr_pool_cleanup_null'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:561: undefined reference to `apr_pool_cleanup_register'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:674: undefined reference to `apr_psprintf'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:674: undefined reference to `apr_table_set'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:651: undefined reference to `ap_update_mtime'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:652: undefined reference to `ap_set_last_modified'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:683: undefined reference to `apr_bucket_eos_create'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:686: undefined reference to `ap_pass_brigade'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:692: undefined reference to `apr_brigade_cleanup'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:616: undefined reference to `apr_brigade_create'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_server_startup':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:439: undefined reference to `apr_pool_userdata_get'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:459: undefined reference to `apr_pool_cleanup_null'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:459: undefined reference to `apr_pool_cleanup_register'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_add_version':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:410: undefined reference to `ap_add_version_component'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_server_startup':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:446: undefined reference to `apr_pool_cleanup_null'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:446: undefined reference to `apr_pool_userdata_set'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_pre_config':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:419: undefined reference to `ap_mpm_query'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:421: undefined reference to `ap_log_error'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_ap2_register_hook':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:710: undefined reference to `ap_hook_child_init'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_child_init':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:702: undefined reference to `apr_pool_cleanup_register'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_getenv':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:262: undefined reference to `apr_table_get'
sapi/apache2handler/.libs/sapi_apache2.o: In function `php_apache_sapi_read_cookies':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/sapi_apache2.c:246: undefined reference to `apr_table_get'
sapi/apache2handler/.libs/apache_config.o: In function `php_apache_phpini_set':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/apache_config.c:116: undefined reference to `ap_server_root_relative'
sapi/apache2handler/.libs/apache_config.o: In function `real_value_hnd':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/apache_config.c:68: undefined reference to `apr_pstrdup'
sapi/apache2handler/.libs/apache_config.o: In function `create_php_config':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/apache_config.c:225: undefined reference to `apr_palloc'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/apache_config.c:229: undefined reference to `apr_pool_cleanup_null'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/apache_config.c:229: undefined reference to `apr_pool_cleanup_register'
sapi/apache2handler/.libs/php_functions.o: In function `zm_info_apache':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:382: undefined reference to `ap_loaded_modules'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:382: undefined reference to `ap_loaded_modules'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:413: undefined reference to `unixd_config'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:418: undefined reference to `ap_mpm_query'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:422: undefined reference to `apr_snprintf'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:428: undefined reference to `ap_server_root'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:437: undefined reference to `apr_table_elts'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:457: undefined reference to `apr_table_elts'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:466: undefined reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_get_modules':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:355: undefined reference to `ap_loaded_modules'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_getenv':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:313: undefined reference to `apr_table_get'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_setenv':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:277: undefined reference to `apr_table_set'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_note':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:234: undefined reference to `apr_table_get'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:237: undefined reference to `apr_table_set'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_response_headers':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:210: undefined reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_request_headers':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:186: undefined reference to `apr_table_elts'
sapi/apache2handler/.libs/php_functions.o: In function `zif_apache_lookup_uri':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:167: undefined reference to `ap_destroy_sub_req'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:162: undefined reference to `ap_destroy_sub_req'
sapi/apache2handler/.libs/php_functions.o: In function `zif_virtual':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:103: undefined reference to `ap_destroy_sub_req'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:99: undefined reference to `ap_rflush'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:101: undefined reference to `ap_run_sub_req'
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:106: undefined reference to `ap_destroy_sub_req'
sapi/apache2handler/.libs/php_functions.o: In function `php_apache_get_version':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:328: undefined reference to `ap_get_server_version'
sapi/apache2handler/.libs/php_functions.o: In function `php_apache_lookup_uri':
/home/cpeasyapache/src/php-5.3.3/sapi/apache2handler/php_functions.c:67: undefined reference to `ap_sub_req_lookup_uri'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1
!! 'make' failed with exit code '512' !!
!! Restoring original working apache !!