Move conditional compilation into the makefile