Better compilation time configurability

Signed-off-by: Olli Vanhoja <olli.vanhoja@gmail.com>