link the categories as well
should fix build as static lib