fix resource library for windows