Correct filepaths of lib files

Puts library files under /lib. 
Fixes #497