Fixed compile errors for TBPL windows/linux