Fixed building of lib files