Makefile adjustments for Apache

@cedricmoullet, what do you think? Please merge if it makes sense to you. I'm also happy to answer questions if you have any.