add support for building an apache module
todos, refactor static support, wip
fix cmake syntax