add new typedefs. fix linux specific build errors that are not detected on windows.