Only use code for the corect version when compiling