Fix some issues with conditionnal compilation
Update packaging and CI script.