modified boost check to be cross platform compatible