Support the dynlock API

Also actually run tests after compiling them >_>