added -lpthread for ubuntu build, updated gitiginore, restored interface for backwards compatibility