Is there a way to specify boost.python to be built with UCS2 instead of USC4? I am trying to build some libraries and ran into the following error:

ImportError: /home/user/boost_1_49_0/stage/lib/libboost_python.so.1.49.0: undefined symbol: PyUnicodeUCS4_FromEncodedObject

I am using a version of Python that seems to use only UCS2.
# python
Python 2.7.2 (default, Aug 24 2011, 22:13:27)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.maxunicode
65535

From what I searched online so far, there are some suggestions to recompile Python with some flags to use UCS4, but that is not possible for me.

Thanks!