Making BmpLog crossplatform