fixed conditional compilation for some platforms