make apc optional
add option for apc
Merge pull request #10 from ricoli/optional-apc

Make APC optional.