This is not only a licensing problem - which has already been adressed by the other answers - but it possibly creates also problems within your team.
Bad case: The library you created is not known to anybody but you, so nobody but you can estimate how useful it is. Now you go to your boss and propose to buy it, from you, for a relatively high price. Somehow you manage to convince your boss to buy it for USD 2000, but then your coworker argue that it isn't as good as you have asserted; to make it worse, someone finds a commercial lib that does the same for USD 250,- and an open source version the does mostly the same for free with a liberal license that allows usage in your project. In the end, it looks like you have tricked to boss to buy something too expensive from you for your own benefit, so your boss will never ever again listen to your proposals.
For that reason, I'd be extra careful that your peers unanimously confirm the big advantages of using your lib before you go to your boss. Otherwise, the chances of running into political troubles probably outweight the advantage of getting extra money for your lib.