Solve warnings

This solves some warnings when building on GHC-7.6.2.