Fixed library compiling