fixes issue #1022
fixes issue #991
fixes issue #982
added build files for Travis