libwinpr-utils: move BitStream functions to macros