Slightly better platform detection

stub out the right way for now because it is broken on ubuntu 13.10
TMP: diagnostics